home *** CD-ROM | disk | FTP | other *** search
/ Belgian Amiga Club - ADF Collection / BS1 part 34.zip / BS1 part 34 / Aztec C 5.0a disk 1.adf / include / devices / printer.h < prev    next >
C/C++ Source or Header  |  1989-11-05  |  3KB  |  156 lines

  1. #ifndef    DEVICES_PRINTER_H
  2. #define    DEVICES_PRINTER_H
  3. #ifndef    EXEC_NODES_H
  4. #include    "exec/nodes.h"
  5. #endif
  6. #ifndef    EXEC_LISTS_H
  7. #include    "exec/lists.h"
  8. #endif
  9. #ifndef    EXEC_PORTS_H
  10. #include    "exec/ports.h"
  11. #endif
  12. #define    PRD_RAWWRITE    (CMD_NONSTD+0)
  13. #define    PRD_PRTCOMMAND    (CMD_NONSTD+1)
  14. #define    PRD_DUMPRPORT    (CMD_NONSTD+2)
  15. #define    PRD_QUERY    (CMD_NONSTD+3)
  16. #define    aRIS    0L
  17. #define    aRIN    1L
  18. #define    aIND    2L
  19. #define    aNEL    3L
  20. #define    aRI    4L
  21. #define    aSGR0    5L
  22. #define    aSGR3    6L
  23. #define    aSGR23    7L
  24. #define    aSGR4    8L
  25. #define    aSGR24    9L
  26. #define    aSGR1    10L
  27. #define    aSGR22    11L
  28. #define    aSFC    12L
  29. #define    aSBC    13L
  30. #define    aSHORP0    14L
  31. #define    aSHORP2    15L
  32. #define    aSHORP1    16L
  33. #define    aSHORP4    17L
  34. #define    aSHORP3    18L
  35. #define    aSHORP6    19L
  36. #define    aSHORP5    20L
  37. #define    aDEN6    21L
  38. #define    aDEN5    22L
  39. #define    aDEN4    23L
  40. #define    aDEN3    24L
  41. #define    aDEN2    25L
  42. #define    aDEN1    26L
  43. #define    aSUS2    27L
  44. #define    aSUS1    28L
  45. #define    aSUS4    29L
  46. #define    aSUS3    30L
  47. #define    aSUS0    31L
  48. #define    aPLU    32L
  49. #define    aPLD    33L
  50. #define    aFNT0    34L
  51. #define    aFNT1    35L
  52. #define    aFNT2    36L
  53. #define    aFNT3    37L
  54. #define    aFNT4    38L
  55. #define    aFNT5    39L
  56. #define    aFNT6    40L
  57. #define    aFNT7    41L
  58. #define    aFNT8    42L
  59. #define    aFNT9    43L
  60. #define    aFNT10    44L
  61. #define    aPROP2    45L
  62. #define    aPROP1    46L
  63. #define    aPROP0    47L
  64. #define    aTSS    48L
  65. #define    aJFY5    49L
  66. #define    aJFY7    50L
  67. #define    aJFY6    51L
  68. #define    aJFY0    52L
  69. #define    aJFY3    53L
  70. #define    aJFY1    54L
  71. #define    aVERP0    55L
  72. #define    aVERP1    56L
  73. #define    aSLPP    57L
  74. #define    aPERF    58L
  75. #define    aPERF0    59L
  76. #define    aLMS    60L
  77. #define    aRMS    61L
  78. #define    aTMS    62L
  79. #define    aBMS    63L
  80. #define    aSTBM    64L
  81. #define    aSLRM    65L
  82. #define    aCAM    66L
  83. #define    aHTS    67L
  84. #define    aVTS    68L
  85. #define    aTBC0    69L
  86. #define    aTBC3    70L
  87. #define    aTBC1    71L
  88. #define    aTBC4    72L
  89. #define    aTBCALL    73L
  90. #define    aTBSALL    74L
  91. #define    aEXTEND    75L
  92. #define    aRAW    76L
  93. struct    IOPrtCmdReq    {
  94. struct    Message    io_Message;
  95. struct    Device    *io_Device;
  96. struct    Unit    *io_Unit;
  97. UWORD    io_Command;
  98. UBYTE    io_Flags;
  99. BYTE    io_Error;
  100. UWORD    io_PrtCommand;
  101. UBYTE    io_Parm0;
  102. UBYTE    io_Parm1;
  103. UBYTE    io_Parm2;
  104. UBYTE    io_Parm3;
  105. };
  106. struct    IODRPReq    {
  107. struct    Message    io_Message;
  108. struct    Device    *io_Device;
  109. struct    Unit    *io_Unit;
  110. UWORD    io_Command;
  111. UBYTE    io_Flags;
  112. BYTE    io_Error;
  113. struct    RastPort    *io_RastPort;
  114. struct    ColorMap    *io_ColorMap;
  115. ULONG    io_Modes;
  116. UWORD    io_SrcX;
  117. UWORD    io_SrcY;
  118. UWORD    io_SrcWidth;
  119. UWORD    io_SrcHeight;
  120. LONG    io_DestCols;
  121. LONG    io_DestRows;
  122. UWORD    io_Special;
  123. };
  124. #define    SPECIAL_MILCOLS    0x0001L
  125. #define    SPECIAL_MILROWS    0x0002L
  126. #define    SPECIAL_FULLCOLS    0x0004L
  127. #define    SPECIAL_FULLROWS    0x0008L
  128. #define    SPECIAL_FRACCOLS    0x0010L
  129. #define    SPECIAL_FRACROWS    0x0020L
  130. #define    SPECIAL_CENTER    0x0040L
  131. #define    SPECIAL_ASPECT    0x0080L
  132. #define    SPECIAL_DENSITY1    0x0100L
  133. #define    SPECIAL_DENSITY2    0x0200L
  134. #define    SPECIAL_DENSITY3    0x0300L
  135. #define    SPECIAL_DENSITY4    0x0400L
  136. #define    SPECIAL_DENSITY5    0x0500L
  137. #define    SPECIAL_DENSITY6    0x0600L
  138. #define    SPECIAL_DENSITY7    0x0700L
  139. #define    SPECIAL_NOFORMFEED    0x0800L
  140. #define    SPECIAL_TRUSTME    0x1000L
  141. #define    SPECIAL_NOPRINT    0x2000L
  142. #define    PDERR_NOERR    0L
  143. #define    PDERR_CANCEL    1L
  144. #define    PDERR_NOTGRAPHICS    2L
  145. #define    PDERR_INVERTHAM    3L
  146. #define    PDERR_BADDIMENSION    4L
  147. #define    PDERR_DIMENSIONOVFLOW    5L
  148. #define    PDERR_INTERNALMEMORY    6L
  149. #define    PDERR_BUFFERMEMORY    7L
  150. #define    PDERR_TOOKCONTROL    8L
  151. #define    SPECIAL_DENSITYMASK    0x0700L
  152. #define    SPECIAL_DIMENSIONSMASK    \
  153. (SPECIAL_MILCOLS|SPECIAL_MILROWS|SPECIAL_FULLCOLS|SPECIAL_FULLROWS\
  154. |SPECIAL_FRACCOLS|SPECIAL_FRACROWS|SPECIAL_ASPECT)
  155. #endif
  156.